public class UtilisationVer2
extends java.lang.Object
| Constructor and Description |
|---|
UtilisationVer2() |
| Modifier and Type | Method and Description |
|---|---|
static void |
main(java.lang.String[] args) |
static void |
testCompteur() |
static void |
testGarage1() |
static void |
testGarage2() |
static void |
testGarage2Bis()
Garage CompteurComparateur
ATTENTION: il faut d'abord instancier un garage Comparable
l'on référence ensuite par un garage CompteurComparable
en effet, les véhicules ayant tous un compteur à 0 lors de leur instanciation ne seraient pas ajoutés
à un garage CompteurComparable, car un Set est sans doublon par rapport au critère de comparaison
|
static void |
testGarage2Ter()
Garage CompteurStaticComparateur
ATTENTION: il faut d'abord instancier un garage Comparable
l'on référence ensuite par un garage CompteurStaticComparable
en effet, les véhicules ayant tous un compteur à 0 lors de leur instanciation ne seraient pas ajoutés
à un garage CompteurStaticComparable, car un Set est sans doublon par rapport au critère de comparaison
|
static void |
testMappings1() |
static void |
testMappings2() |
static void |
testVehicule() |
public static void main(java.lang.String[] args)
public static void testCompteur()
public static void testVehicule()
public static void testMappings1()
public static void testMappings2()
public static void testGarage1()
public static void testGarage2()
public static void testGarage2Bis()
public static void testGarage2Ter()